package cn.antblog.designTemp.wrapper.rice;

/**
 * @ClassName FastFood
 * @Description 快餐接口(抽象构件)
 * @Author YangJingyi
 * @Date 2023/8/16 16:17
 * @Version 1.0
 */
public  abstract class FastFood {
    private float price;
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getPrice() {
        return price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    //这个接口是这个产品都有的特点，比如每个快餐我们都需要知道他的价格
    public abstract float cost(); //获取价格

}
